<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateForwardTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('forward', function (Blueprint $table) {
            $table->bigIncrements('id');
            $table->integer('uid');
            $table->string('domain')->default('')->comment('域名');
            $table->string('title')->default('')->comment('标题');
            $table->string('keywords')->nullable()->comment('关键词');
            $table->string('description')->nullable()->comment('描述');
            $table->string('url')->nullable()->comment('跳转地址');
            $table->string('mode')->default('')->comment('跳转方式');
            $table->string('status')->default('')->comment('状态');
            $table->string('data')->nullable()->comment('其他设置');
            $table->string('expired_date')->nullable()->comment('到期时间');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('forward');
    }
}
